/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Model.User;

import Model.DataBase;
import RssEasy.Core.CookieHelper;
import java.io.IOException;
import java.net.CookieHandler;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.jsp.PageContext;

/**
 *
 * @author admin
 */
public class StaffList extends DataBase{
    
    public StaffList(PageContext pageContext, String tablename) {
        super(pageContext, tablename);
    }
    public static void IsLogin(HttpServletRequest request,HttpServletResponse response) throws IOException {
    
         CookieHelper cookie = new CookieHelper(request, response);
        if(cookie.Get("account")== null){
           response.sendRedirect("/login/login.jsp");
           response.flushBuffer();
        }
    
    }
    
}
